import request from "@/utils/request.js";
const merchant = {
	//商家信息
	merchantInfo: data => request.post("/api/merchant/info", data, {
		noAuth: false
	}),
	//课程预约记录
	courseOrderPreList: data => request.post("/api/merchant/courseOrderPreList", data, {
		noAuth: false
	}),
	//课程列表
	courseList: data => request.post("/api/merchant/courseList", data, {
		noAuth: false
	}),
	//课程新增
	courseAdd: data => request.post("/api/merchant/courseAdd", data, {
		noAuth: false
	}),
	//课程删除
	courseDelete: data => request.post("/api/merchant/courseDelete", data, {
		noAuth: false
	}),
	//课程详情
	courseEdit: data => request.post("/api/merchant/courseEdit", data, {
		noAuth: false
	}),
	//课程详情提交
	courseEditPost: data => request.post("/api/merchant/courseEditPost", data, {
		noAuth: false
	}),
	//课程标签
	courseLabel: data => request.post("/api/merchant/courseLabel", data, {
		noAuth: false
	}),
	//课程分类
	courseCategory: data => request.post("/api/merchant/courseCategory", data, {
		noAuth: false
	}),
	
	//老师编辑提交接口
	merchantTeacherEditPost: data => request.post("/api/merchant/merchantTeacherEditPost", data, {
		noAuth: false
	}),
	//老师详情
	merchantTeacherEdit: data => request.post("/api/merchant/merchantTeacherEdit", data, {
		noAuth: false
	}),
	//老师删除
	merchantTeacherDelete: data => request.post("/api/merchant/merchantTeacherDelete", data, {
		noAuth: false
	}),
	//老师列表
	merchantTeacherList: data => request.post("/api/merchant/merchantTeacherList", data, {
		noAuth: false
	}),
	// 全部老师列表
	merchantTeacherListAl: data => request.post("/api/merchant/merchantTeacherListAll", data, {
		noAuth: false
	}),
	//老师添加接口
	merchantTeacherAdd: data => request.post("/api/merchant/merchantTeacherAdd", data, {
		noAuth: false
	}),
	// 商品分类
	getGoodsCategory: data => request.post("/api/goods/getGoodsCategory", data, {
		noAuth: false
	}),
	//商品列表
	goodsList: data => request.post("/api/merchant/goodsList", data, {
		noAuth: false
	}),
	//商品新增
	goodsAdd: data => request.post("/api/merchant/goodsAdd", data, {
		noAuth: false
	}),
	//商品删除
	goodsDelete: data => request.post("/api/merchant/goodsDelete", data, {
		noAuth: false
	}),
	//商品详情
	goodsEdit: data => request.post("/api/merchant/goodsEdit", data, {
		noAuth: false
	}),
	//商品编辑提交
	goodsEditPost: data => request.post("/api/merchant/goodsEditPost", data, {
		noAuth: false
	}),
	//课程list
	courseListShow: data => request.post("/api/course/courseList", data, {
		noAuth: false
	}),
	//课表
	timetable: data => request.post("/api/course/timetable", data, {
		noAuth: false
	}),
	//全部课表
	timetableAll: data => request.post("/api/course/timetable", data, {
		noAuth: false
	}),
	//优惠券添加
	couponAdd: data => request.post("/api/merchant/couponAdd", data, {
		noAuth: false
	}),
	//优惠券列表
	couponList: data => request.post("/api/merchant/couponList", data, {
		noAuth: false
	}),
	//优惠券删除成功
	couponDelete: data => request.post("/api/merchant/couponDelete", data, {
		noAuth: false
	}),
	//优惠券详情
	couponEdit: data => request.post("/api/merchant/couponEdit", data, {
		noAuth: false
	}),
	//优惠券编辑提交
	couponEditPost: data => request.post("/api/merchant/couponEditPost", data, {
		noAuth: false
	}),
	//充值审核提交
	rechargeAdd: data => request.post("/api/merchant/rechargeAdd", data, {
		noAuth: false
	}),
	//充值审核列表
	rechargeList: data => request.post("/api/merchant/rechargeList", data, {
		noAuth: false
	}),
	//活动列表
	activityList: data => request.post("/api/activity/getList", data, {
		noAuth: false
	}),
	//预约记录
	getOrderList: data => request.post("/api/activity/getOrderList", data, {
		noAuth: false
	}),
	//预约记录详情
	getOrderDetail: data => request.post("/api/activity/getOrderDetail", data, {
		noAuth: false
	}),
	//核销订单
	orderVerification: data => request.post("/api/activity/orderVerification", data, {
		noAuth: false
	}),
	//卡列表
	cardList: data => request.post("/api/merchant/cardList", data, {
		noAuth: false
	}),
	//课程列表
	courseOrderList: data => request.post("/api/merchant/courseOrderList", data, {
		noAuth: false
	}),
	
	//预存积分添加
	merchantScore: data => request.post("/api/merchant/merchantScore", data, {
		noAuth: false
	}),
	//预存积分列表
	merchantScoreList: data => request.post("/api/merchant/merchantScoreList", data, {
		noAuth: false
	}),
	//充值提交页面获取用户的积分
	rechargeScore: data => request.post("/api/merchant/rechargeScore", data, {
		noAuth: false
	}),
	//充值提交页面获取用户的积分
	getMerchantScore: data => request.post("/api/merchant/getMerchantScore", data, {
		noAuth: false
	}),
	//商家钱包
	getScoreLog: data => request.post("/api/merchant/getScoreLog", data, {
		noAuth: false
	}),
	//积分核销
	scoreoff: data => request.post("/api/merchant/scoreoff", data, {
		noAuth: false
	}),
	//固定积分消费
	scoreFixedLog: data => request.post("/api/merchant/scoreFixedLog", data, {
		noAuth: false
	}),
	//用户消费详情
	scoreFixedLogEdit: data => request.post("/api/merchant/scoreFixedLogEdit", data, {
		noAuth: false
	}),
	//订单详情
	scoreFixedLogOrder: data => request.post("/api/merchant/scoreFixedLogOrder", data, {
		noAuth: false
	}),
	//课程操作退款
	courseOrderRefund: data => request.post("/api/merchant/courseOrderRefund", data, {
		noAuth: false
	}),

	//课程列表-不分页
	allcourseList: data => request.post("/api/merchant/allcourseList", data, {
		noAuth: false
	}),
	//固定积分的充值记录
	scoreFixedLogchar: data => request.post("/api/merchant/scoreFixedLogchar", data, {
		noAuth: false
	}),
	//商品订单列表
	goodsOrderList: data => request.post("/api/merchant/goodsOrderList", data, {
		noAuth: false
	}),
	//商品订单核销
	goodsOrderOff: data => request.post("/api/merchant/goodsOrderOff", data, {
		noAuth: false
	}),
	//课程核销详情
	orderPreoffInfoOffedit: data => request.post("/api/course/orderPreoffInfoOffedit", data, {
		noAuth: false
	}),
	//商品核销详情
	goodsOrderOffedit: data => request.post("/api/goods/goodsOrderOffedit", data, {
		noAuth: false
	}),
	//课程核销
	orderPreoff: data => request.get("/api/course/orderPreoff", data, {
		noAuth: false
	}),
	//课程核销
	userRechargeList: data => request.post("/api/merchant/userRechargeList", data, {
		noAuth: false
	}),
	//商品上下架
	goodsShow: data => request.post("/api/merchant/goodsShow", data, {
		noAuth: false
	}),
	//课程上下架
	courseShow: data => request.post("/api/merchant/courseShow", data, {
		noAuth: false
	}),
	//课程包列表
	courseBagList: data => request.post("/api/merchant/wrapList", data, {
		noAuth: false
	}),
	//课程包添加
	wrapAdd: data => request.post("/api/merchant/wrapAdd", data, {
		noAuth: false
	}),
	// 课程包详情
	wrapDetail: data => request.post("/api/merchant/wrapEdit", data, {
		noAuth: false
	}),
	//课程包删除
	wrapDelete: data => request.post("/api/merchant/wrapDelete", data, {
		noAuth: false
	}),
	//课程包编辑
	wrapEditPost: data => request.post("/api/merchant/wrapEditPost", data, {
		noAuth: false
	}),
	//课程包列表全部
	wrapListAll: data => request.post("/api/merchant/wrapListAll", data, {
		noAuth: false
	}),
	//课程包充值发放
	wrapRechargeAdd: data => request.post("/api/merchant/wrapRechargeAdd", data, {
		noAuth: false
	}),
	// 订单列表
	wrapRechargeCard: data => request.post("/api/merchant/wrapRechargeCard", data, {
		noAuth: false
	}),
	// 用户列表
	getUserList: data => request.post("/api/merchant/getUserList", data, {
		noAuth: false
	}),
}
export default merchant;